package top.infopub.mgr.bpa.dao;

import com.github.pagehelper.Page;
import org.springframework.stereotype.Repository;
import top.infopub.generic.GenericDao;
import top.infopub.mgr.bpa.domain.BpaProjectDomain;
import top.infopub.mgr.bpa.domain.ContractExtSupDomain;
import top.infopub.mgr.bpa.vo.ContractExtSupVo;
import top.infopub.model.bpa.ContractExtSup;

import java.util.List;

/*承继协议--补充协议（BPA_CONTRACT_EXT_SUP）*/
@Repository
public interface ContractExtSupDao extends GenericDao<ContractExtSup, String> {

    /**
     * 根据条件查询分页数据
     * @param contractExtSupVo
     * @return
     * @see
     */
    Page<ContractExtSupDomain> selectByDomainWhere(ContractExtSupVo contractExtSupVo);


    List<BpaProjectDomain> selectProject();

    ContractExtSup selectExtSup(String id);

    BpaProjectDomain selectByDomain(String proCode);

    void updateExtSup(ContractExtSup contractExtSup);

    void insertExtSup(ContractExtSup contractExtSup);
}
